package T6_18.T6_18_4;

public class TestMain {
    public static void main(String[] args) {
        MyThread T1 = new MyThread();
        MyThread T3 = new MyThread();
        MyThread2 T2 = new MyThread2();

        T1.setPriority(Thread.MAX_PRIORITY);

        //Thread T4 = new Thread(T2);
        T3.setPriority(Thread.MIN_PRIORITY);

        //T1.start();
        //T1.start();
        //T3.start();
        new Thread(T1).start();
        //new Thread(T3).start();
        new Thread(T3).start();

        /*
          类之间的关系
          runnable(接口)是thread(类)的父类
          run()方法在runnable中定义,在thread中被重写
          start()方法在thread类中被定义,并且在runnable接口中没有定义这个方法,所以重写runnable中的run()方法后
          需要使用thread类中的start()方法启动进程
        */
    }
}
